package models

import (
	"gorm.io/gorm"
)

type Dockers struct {
	gorm.Model
	Name  string
	Image string
	Tel   string
	Addr  string
	Price float64
}

func (d *Dockers) Add() error {
	return DB.Create(&d).Error
}
func (d *Dockers) Update() error {
	return DB.Updates(&d).Error
}
func (d *Dockers) Del() error {
	return DB.Delete(&d).Error
}
